import http from './axios.js'

// 登录请求
function login (obj){
    let data = http.post("/sys/login",obj);
    return data
}

// 请求指定页数和每页多少条数据的员工列表
function getPermissions(obj){
    let data = http.get("/user-manage/list", { params: obj });
    return data
}

// 请求所有员工列表数据
function getlist(){
    let data = http.get("/user-manage/all-list");
    return data
}

// 导入excel文件到员工管理
function importExcel(obj){
    let data = http.post("/user-manage/batch/import",obj);
    return data
}





export { login, getPermissions, importExcel ,getlist};